#include "dbus_signal_test.h"
#include <qdebug.h>

DbusSignalTest::DbusSignalTest(QObject *parent):
    QObject(parent)
{

}

DbusSignalTest::~DbusSignalTest()
{

}

void DbusSignalTest::onSensorDataChanged(const QVariantMap &sensorData)
{
    qDebug() << "signal onSensorDataChanged";

    if (sensorData.contains("power")) {
        qDebug() << "power:" << sensorData.value("power").toUInt();
    }
    if (sensorData.contains("angle")) {
        qDebug() << "angle:" << sensorData.value("angle").toInt();
    }
    if (sensorData.contains("velocity")) {
        qDebug() << "velocity:" << sensorData.value("velocity").toUInt();
    }
}
